package com.cskaoyan.mapper;

import com.cskaoyan.bean.MarketOrderGoods;
import com.cskaoyan.bean.MarketOrderGoodsExample;
import com.cskaoyan.bean.vo.WxGoodOfOrderListVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

public interface MarketOrderGoodsMapper {
    long countByExample(MarketOrderGoodsExample example);

    int deleteByExample(MarketOrderGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketOrderGoods row);

    int insertSelective(MarketOrderGoods row);

    List<MarketOrderGoods> selectByExample(MarketOrderGoodsExample example);

    MarketOrderGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") MarketOrderGoods row, @Param("example") MarketOrderGoodsExample example);

    int updateByExample(@Param("row") MarketOrderGoods row, @Param("example") MarketOrderGoodsExample example);

    int updateByPrimaryKeySelective(MarketOrderGoods row);

    int updateByPrimaryKey(MarketOrderGoods row);

    List<WxGoodOfOrderListVO> selectGoodsByOrderId(Integer id);

    List<MarketOrderGoods> selectByOrderId(@Param("id") Integer orderId);

    MarketOrderGoods selectGoodsByOrderIdAndGoodsId(@Param("orderId") Integer orderId,@Param("goodsId") Integer goodsId);

    Integer selectGoodsSnById(@Param("id") Integer orderGoodsId);

    Integer selectOrderIdById(Integer orderGoodsId);
}
